package cn.hxth.dubbo.service.mapper;

import cn.hxth.api.model.InstockRecord;
import cn.hxth.api.query.InstockRecordQueryObject;
import cn.hxth.api.query.QueryObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface InstockRecordMapper {


    boolean insert(InstockRecord record);

    InstockRecord selectByPrimaryKey(int ino);

    List<InstockRecord> selectAll(InstockRecordQueryObject instockRecordQueryObject);

    Integer selectCount(InstockRecordQueryObject instockRecordQueryObject);

    List<Map<String,Object>> selectAggrInfoSplit(QueryObject queryObject);

    Integer selectAggrInfoCount();

    List<Map<String,Object>> selectAggrInfo();

    boolean insertList( List<InstockRecord> instockRecordList);

    List<Integer> selectInoForCache(InstockRecordQueryObject instockRecordQueryObject);
}